package com.qf.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.pojo.Degassing;
import com.qf.pojo.Recycle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DegassingMapper extends BaseMapper<Degassing> {
    @Select("SELECT *  FROM degassing d LEFT JOIN USER u ON d.user_id=u.user_id ${ew.customSqlSegment}")
    Page<Degassing> getPage(Page<Degassing> page, @Param(Constants.WRAPPER)QueryWrapper<Degassing> wrapper);


    @Select("SELECT *  FROM degassing d LEFT JOIN USER u ON d.user_id=u.user_id ${ew.customSqlSegment}")
    Degassing findOne(@Param(Constants.WRAPPER)QueryWrapper<Degassing> wrapper);
}
